package com.zmn.plat.admin.controller.channel.price;

import com.zmn.common.dto2.ResponseDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zmn.common.constant.StatusConsts;
import com.zmn.common.dto.ResultDTO;
import com.zmn.common.utils.string.StringUtil;
import com.zmn.plat.admin.controller.channel.ChannelBaseController;

/**
 * 渠道ModifyController
 *
 * @author xiangjunming
 * @since 2019 /08/20 15:11:50
 */
@Controller
@RequestMapping("/channel/price/")
public class ChannelpriceModifyController extends ChannelBaseController {

    private Logger logger = LoggerFactory.getLogger(ChannelpriceModifyController.class);

    /**
     * 启用/停用
     *
     * @param ids
     *            the ids
     * @param status
     *            the status
     * @return the result dto
     */
    @RequestMapping(value = "modifyStatus")
    @ResponseBody
    public ResponseDTO updateStatus(String ids, int status, int channelId) {
        if (StringUtil.isBlank(ids)) {
            return ResponseDTO.fail("请选择产品！");
        }
        // channelBasePriceService.updateStatus(ids, status, channelId, getMcStaff().getRealName());

        return ResponseDTO.success(StatusConsts.STATUS_SUCCESS, "操作成功！");
    }

}
